<template>
    <view class="page" :style="themeColor">
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout secondNext_flex_0"   >
            <view   class='flex flex-wrap align-center secondNext_fd0_0'     >
        <text class='secondNext_fd0_0_c0' >完善基本信息（2/2）</text>
</view>
</view>
        
<!---flex布局flex布局结束-->
    <view class="flex benben-position-layout flex flex-wrap align-center secondNext_flex_1"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
            <view   class='flex flex-wrap align-center justify-between flex-sub secondNext_fd1_0'     >
            <view   class='flex flex-wrap align-center justify-center secondNext_fd1_0_c0'  @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  secondNext_fd1_0_c0_c0'   >&#xE794;</text>
</view>
    <view   class='flex flex-wrap align-stretch justify-center'     >
        </view>
    <view   class='flex flex-wrap align-center secondNext_fd1_0_c0'     >
        </view>
</view>
</view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout secondNext_flex_2"   >
            <view   class='flex flex-wrap align-center secondNext_fd2_0'     >
        <text class='secondNext_fd2_0_c0' >请上传身份证照片（选填）</text>
</view>
    <view   class='flex flex-wrap align-center secondNext_fd2_1'     >
        <view class="upload position-relative secondNext_fd2_1_c0">
    <text v-if="fd2_1_c0 != ''" @tap="fd2_1_c0 = ''" class='fu-iconfont2 position-absolute secondNext_fd2_1_c0_icon' >&#xE8E7;</text>
     <image class=" secondNext_fd2_1_c0_image" mode="aspectFit"  @tap="soloChooseImage('fd2_1_c0id','fd2_1_c0',false,false)" :src="fd2_1_c0 ? fd2_1_c0 : STATIC_URL+'14.png'"></image>
</view>
</view>
    <view   class='flex flex-wrap align-center secondNext_fd2_1'     >
        <view class="upload position-relative secondNext_fd2_1_c0">
    <text v-if="fd2_2_c0 != ''" @tap="fd2_2_c0 = ''" class='fu-iconfont2 position-absolute secondNext_fd2_1_c0_icon' >&#xE8E7;</text>
     <image class=" secondNext_fd2_1_c0_image" mode="aspectFit"  @tap="soloChooseImage('fd2_2_c0id','fd2_2_c0',false,false)" :src="fd2_2_c0 ? fd2_2_c0 : STATIC_URL+'15.png'"></image>
</view>
</view>
    <view   class='flex flex-wrap align-center secondNext_fd2_3'     >
        <text class='secondNext_fd2_0_c0' >学历证书（选填）</text>
</view>
    <view   class='flex flex-wrap align-center secondNext_fd2_1'     >
        <view class="upload position-relative secondNext_fd2_1_c0">
    <text v-if="fd2_4_c0 != ''" @tap="fd2_4_c0 = ''" class='fu-iconfont2 position-absolute secondNext_fd2_1_c0_icon' >&#xE8E7;</text>
     <image class=" secondNext_fd2_1_c0_image" mode="aspectFit"  @tap="soloChooseImage('fd2_4_c0id','fd2_4_c0',false,false)" :src="fd2_4_c0 ? fd2_4_c0 : STATIC_URL+'16.png'"></image>
</view>
</view>
    <view   class='flex flex-wrap align-center secondNext_fd2_3'     >
        <text class='secondNext_fd2_0_c0' >资格证件（选填）</text>
<text class='secondNext_fd2_5_c1' >可上传多个</text>
</view>
    <view   class='flex flex-wrap align-center justify-between'     >
            <view   class='flex flex-wrap align-center'     >
        <image class='secondNext_fd2_6_c0_c0' mode="aspectFit"  :src='STATIC_URL+"17.png"'></image>
</view>
    <view   class='flex flex-wrap align-center'     >
        <image class='secondNext_fd2_6_c0_c0' mode="aspectFit"  :src='STATIC_URL+"17.png"'></image>
</view>
    <view   class='flex flex-wrap align-center'     >
        <image class='secondNext_fd2_6_c0_c0' mode="aspectFit"  :src='STATIC_URL+"17.png"'></image>
</view>
</view>
    <view   class='flex flex-wrap align-center secondNext_fd2_1'     >
        <view class="upload position-relative secondNext_fd2_1_c0">
    <text v-if="fd2_7_c0 != ''" @tap="fd2_7_c0 = ''" class='fu-iconfont2 position-absolute secondNext_fd2_1_c0_icon' >&#xE8E7;</text>
     <image class=" secondNext_fd2_1_c0_image" mode="aspectFit"  @tap="soloChooseImage('fd2_7_c0id','fd2_7_c0',false,false)" :src="fd2_7_c0 ? fd2_7_c0 : STATIC_URL+'16.png'"></image>
</view>
</view>
</view>
        
<!---flex布局flex布局结束-->
    <view class="flex flex-direction flex-wrap align-center benben-position-layout flex secondNext_flex_3"    >
        <button class='secondNext_fd3_0' >下一步</button>

        </view>
<view :style="{height: '88rpx'}"  ></view>
    
    
    </view>
</template>
<script>
    import UploadImage from '@/common/utils/upload-image.js'
    export default {
        components:{},
        
        
        data(){
			return {"fd2_1_c0":"","fd2_1_c0id":"","fd2_2_c0":"","fd2_2_c0id":"","fd2_4_c0":"","fd2_4_c0id":"","fd2_7_c0":"","fd2_7_c0id":""};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                         //上传单图、多图方法
    soloChooseImage(id, path, obj, obj1, fnName = false) {
      let self = this
      if (!obj) obj = this
      if (!obj1) obj1 = this
      if (self.uploading) {
        return
      }
      // 从相册中选择图片
      uni.chooseImage({
        count: 1, // 默认3
        sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图，默认二者都有
        success: function (res) {
          self.uploading = true
          // 开始上传
          new UploadImage(res.tempFiles, {
            complete: function (res) {
              self.uploading = false
              if (id) self.$set(obj, id, res[0].id)
              if (path) self.$set(obj1, path, res[0].path)
              if (fnName) self[fnName]()
            },
          })
        },
      })
    }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:var(--benbenbgColor1);background-size: 100% auto !important;
        }
    .secondNext_flex_0{
        background:url(/static/images/13.png) no-repeat ,transparent;height:346rpx;background-size:100% auto !important;padding:88rpx 04rpx 0rpx 0rpx;
    }
    .secondNext_fd0_0_c0{
        color:#000000;font-size:40rpx;font-weight:500;line-height:56rpx;
    }
    .secondNext_fd0_0{
        margin:150rpx 0rpx 0rpx 0rpx;padding:0rpx 32rpx 0rpx 32rpx;
    }
    .secondNext_flex_1{
        width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;
    }
    .secondNext_fd1_0_c0_c0{
        font-size:36rpx;color:#333;
    }
    .secondNext_fd1_0_c0{
        width:50rpx;height:50rpx;
    }
    .secondNext_fd1_0{
        padding:0rpx 32rpx 0rpx 32rpx;
    }
    .secondNext_flex_2{
        padding:0rpx 32rpx 0rpx 32rpx;
    }
    .secondNext_fd2_6_c0_c0{
        width:206rpx;height:140rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .secondNext_fd2_5_c1{
        color:#ACB3B9;font-size:28rpx;font-weight:700;line-height:45rpx;
    }
    .secondNext_fd2_3{
        margin:32rpx 0rpx 16rpx 0rpx;
    }
    .secondNext_fd2_1_c0_image{
        width:100%;height:100%;
    }
    .secondNext_fd2_1_c0_icon{
        top:0rpx;right:0rpx;z-index:10;color:#ff5536;
    }
    .secondNext_fd2_1_c0{
        width:670rpx;height:400rpx;
    }
    .secondNext_fd2_1{
        margin:16rpx 0rpx 16rpx 0rpx;
    }
    .secondNext_fd2_0_c0{
        color:#000000;font-size:32rpx;font-weight:700;line-height:45rpx;
    }
    .secondNext_fd2_0{
        margin:0rpx 0rpx 16rpx 0rpx;
    }
    .secondNext_flex_3{
        width:750rpx;height:88rpx;overflow:hidden;z-index:10;bottom:calc(48rpx + var(--window-bottom));
    }
    .secondNext_fd3_0{
        background:rgba(205, 150, 45, 1);border-radius:64rpx 64rpx 64rpx 64rpx;font-size:32rpx;color:#fff;width:686rpx;height:88rpx;line-height:88rpx;
    }
</style>